/*
 * @Author: 徐建辰
 * @Date: 2022-02-13 14:39:49
 * @LastEditTime: 2022-02-14 09:36:01
 * @LastEditors: 徐建辰
 * @Description: 商品模块请求
 */
import request from './request'

// 获取商品详情
export const getDetail = id => request({url: `/goods/detail/${id}`})

// 获取商品分类
export const getCategory = () => request({url: '/categories'})

// 搜索
export const searchShop = params => request({
  url: '/search',
  params
})